﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="ThisChannel" Object="Channel" InnerID="Request.QueryString['ID']" Validate="True" />
<script language="c#" runat="server">
protected object ModuleID
{
	get
	{
		DataRow[] rows = Manager.Instances.Select(Alias.Instance.ID + "='" + ThisChannel[Alias.Channel.InstanceID] + "'");
		if (rows.Length == 0)
			return String.Empty;
		else
			return rows[0][Alias.Module.Namespace];
	}
}
</script>
<section data-page="channel_change_template" data-title="更换模板" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString["ID"]%>" data-template-lang="<%=ThisChannel[TemplateLang]%>" data-channel-lang="<%=ThisChannel[Lang]%>" data-translate-lang="<%=ThisChannel[TranslateLang]%>" data-template-path="<%=ThisChannel[TemplatePath]%>" data-skin-path="<%=ThisChannel[SkinPath]%>" data-module-id="<%=ModuleID%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">栏目列表</a> → <b class="<%=ContentLang%>Font"><%=ThisChannel[Name]%></b></dt>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<div class="ali-tabs" data-event="click">
				<div class="ali-tabs-header">
					<div class="ali-tabs-nav-container">
						<ul>
							<li><a href="edit.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>" target="ali-navtab">编辑</a></li>
							<li class="ali-active"><a>更改模板</a></li>
							<li><a href="extra_instance.aspx?Lang=<%=ContentLang%>&amp;ID=<%=Request.QueryString["ID"]%>" target="ali-navtab">栏目邦定</a></li>
							<%If Convert.ToBoolean(ThisChannel[EnableMenu])%>
								<li><a href="menu/list.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=Request.QueryString["ID"]%>" target="ali-navtab">栏目菜单</a></li>
								<li><a href="menu/add.aspx?Lang=<%=ContentLang%>&amp;ChannelID=<%=Request.QueryString["ID"]%>" target="ali-navtab">添加菜单</a></li>
							<%EndIf%>
						</ul>
					</div>
				</div>
				<div class="ali-tabs-body">
					<div class="ali-tabs-panel"></div>
					<div class="ali-tabs-panel">
						<table class="post-table margin2">
							<tr>
								<th>智能翻译成：</th>
								<td>
									<select name="TranslateLang" data-class="<%=ContentLang%>Font" data-ali-widget="combo">
										<option value="">未指定</option>
									</select>
									<label style="display:none"><input type="checkbox" data-name="Match">匹配</label>
								</td>
							</tr>
							<tr>
								<th>模板：</th>
								<td><select name="TemplatePath" data-ali-widget="combo"></select></td>
							</tr>
							<tr>
								<th>皮肤：</th>
								<td><select name="SkinPath" data-ali-widget="combo"></select></td>
							</tr>
							<tr>
								<th>模板缩略图：</th>
								<td><img data-name="Thumbnail" alt="预览" style="float:left;margin:5px;width:50px;height:50px"></td>
							</tr>
						</table>
					</div>
				</div>
				<div class="ali-tabs-bottom"><b></b></div>
			</div>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button><input type="hidden" name="TemplateLang" value="<%=ThisChannel[TemplateLang]%>"></div>
	</form>
</section>